# ref links: https://trac.ffmpeg.org/wiki/Capture/Desktop
# yes | ffmpeg -hide_banner -loglevel panic -nostats -video_size 1920x1080 -framerate 25 -f x11grab -i :0.0 -f alsa -ac 2 -i hw:0 -r 25 output.mp4

# NOTE: this line only for linux x11
ffmpeg -hide_banner -loglevel panic -video_size 1920x1080 -framerate 30 -f x11grab -i :0.0 -f alsa -ac 2 -i hw:0 -c:v libx264rgb -crf 0 -preset ultrafast -color_range 2 ~/Videos/output.mkv
# 1.25 jiasu
ffmpeg -i jianzhi.mp4 -filter_complex "[0:v]setpts=0.8*PTS[v];[0:a]atempo=1.25[a]" -map "[v]" -map "[a]" jianzhi_output.mp4

# don't trace this computer any sound
ffmpeg -hide_banner  -video_size 1920x1080 -framerate 30 -f x11grab -i :0.0  -crf 0 -preset ultrafast -color_range 2 ~/Videos/output.mkv
